package com.chengxiaoxiao.ai_demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 原始消息表 实体对象
 *
 * @Description:
 * @Author: Cheng Xiaoxiao
 * @Date: 2025-03-20 16:24:09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "原始消息实体对象")
public class OriginalMessage implements Serializable {

    @Schema(description = "主键")
    @TableId
    private String id;
    @Schema(description = "所属会话ID")
    private String conversationId;
    @Schema(description = "消息")
    private String message;
    @Schema(description = "创建时间", hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "更新时间", hidden = true)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Schema(description = "上下文信息")
    private String context;
}
